package com.ruoyi.reward.mapper;

import java.util.List;
import com.ruoyi.reward.domain.OfferReward;

/**
 * rewardMapper接口
 * 
 * @author YuYang
 * @date 2021-11-11
 */
public interface OfferRewardMapper 
{
    /**
     * 查询reward
     * 
     * @param rewardId reward主键
     * @return reward
     */
    public OfferReward selectOfferRewardByRewardId(Long rewardId);

    /**
     * 查询reward列表
     * 
     * @param offerReward reward
     * @return reward集合
     */
    public List<OfferReward> selectOfferRewardList(OfferReward offerReward);

    /**
     * 新增reward
     * 
     * @param offerReward reward
     * @return 结果
     */
    public int insertOfferReward(OfferReward offerReward);

    /**
     * 修改reward
     * 
     * @param offerReward reward
     * @return 结果
     */
    public int updateOfferReward(OfferReward offerReward);

    /**
     * 删除reward
     * 
     * @param rewardId reward主键
     * @return 结果
     */
    public int deleteOfferRewardByRewardId(Long rewardId);

    /**
     * 批量删除reward
     * 
     * @param rewardIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOfferRewardByRewardIds(Long[] rewardIds);
}
